package com.css.fxfzdzzh.modules.downloadLegend.controller;

import com.css.fxfzdzzh.base.response.RestResponse;
import com.css.fxfzdzzh.modules.downloadLegend.Vo.LegendVo;
import com.css.fxfzdzzh.modules.downloadLegend.service.SupergraphService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/legend")
@Slf4j
public class SupergraphController {

    @Resource
    SupergraphService supergraphService;
    @PostMapping("/supergraph")
    public RestResponse Supergraph(@RequestBody LegendVo legendVo) {
        //生成图件
        RestResponse response = supergraphService.handle(legendVo);
        return response;
    }
}
